package com.shicijiaoliu.pojo;


import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Mainpost {

  private long mId;
  private long aId;
  private long sId;
  private LocalDateTime finaltime;
  private long clicks;
  private LocalDateTime postingtime;
  private String content;
  private String title;
  private long replies;
  private String isjing;
  private String jubao;

  private String username;

  private String sectionname;

  public Mainpost(){}

  public Mainpost(long aid,long sid,long mid,LocalDateTime finaltime, long clicks, LocalDateTime postingtime, String content, String title, long replies, String isjing) {
          this.finaltime=finaltime;this.clicks=clicks;this.postingtime=postingtime;this.content=content;this.title=title;
          this.replies=replies;this.isjing=isjing;
          this.aId= aid;this.sId=sid;this.mId=mid;
  }

    public Mainpost(String content, long sid, long aid,String title) {
        this.postingtime = LocalDateTime.now();
        this.finaltime = LocalDateTime.now();
        this.title = title;
        this.clicks = 0;
        this.replies = 0;
        this.content = content;
        this.sId = sid;
        this.aId = aid;
    }
}
